package com.test.spring.anno.test.test4Aop.service;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class LogAop {
	@Pointcut(value = "execution( com.test.spring.anno.service.TeacherService.*(..))")
	public void pointCut(){

	}

	@Before(value = "pointCut()")
	public void logBefore(){
		System.out.println("log aop @Before exec");
	}
}
